home *** CD-ROM | disk | FTP | other *** search
- #include <iostream.h>
-
- #include "oath/oath.h"
-
- main ()
- {const char * T = "R";
- if(tolower(*T) == tolower('R') && tolower(*T) == tolower('r'))
- cout << "tolower() seems to work." << endl;
-
- stringA S = minStringA::make("rangeRangeRANGErANGE*", 1);
- stringPosA P = S.makePos();
- cout << "Four tests:" << endl;
- if(P.matchAnyCase("range"))
- cout << " 1 -- range; now at " << *P << endl;
- if(P.matchAnyCase("range"))
- cout << " 2 -- Range; now at " << *P << endl;
- if(P.matchAnyCase("range"))
- cout << " 3 -- RANGE; now at " << *P << endl;
- if(P.matchAnyCase("range"))
- cout << " 4 -- rANGE; now at " << *P << endl;
- cout << "End tests." << endl;
- }
-